package com.smartEdu.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import com.smartEdu.dao.UserParamDao;
import com.smartEdu.mapper.UserParamMapper;
import com.smartEdu.model.UserParamModel;
import com.smartEdu.model.UserStudentParamModel;
import com.smartEdu.po.UserInfoPo;

@Repository("userParamDaoImpl")
public class UserParamDaoImpl implements UserParamDao{

	@Autowired(required=false)
	@Qualifier("userParamMapper")
	private UserParamMapper userParamMapper;
	
	@Override
	public void AddOrUpdate(UserStudentParamModel model) {
		userParamMapper.UpdateOrInsert(model);
	}

	@Override
	public UserInfoPo CheckPasswd(UserParamModel model) {
		return userParamMapper.CheckPasswd(model);
	}

}
